package cn.bellychang;

import cn.bellychang.tomcat.TomcatConfiguration;
import io.prometheus.client.spring.boot.EnablePrometheusEndpoint;
import io.prometheus.client.spring.boot.EnableSpringBootMetricsCollector;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

/**
 * @author ChangLiang
 * @date 2020/2/21
 */
@SpringBootApplication
@EnableSpringBootMetricsCollector
@EnablePrometheusEndpoint
public class Bootstrap {

    public static void main(String[] args) {
//        SpringApplication.run(Bootstrap.class);

        new SpringApplicationBuilder().sources(Bootstrap.class,
                TomcatConfiguration.class).run(args);
    }
}
